<template>
  <component :is="currentView" />
</template>

<script>

import { mapGetters } from 'vuex'
import RoleManageRouterView from './RoleManageRouterView'
import Exception403 from '@/views/exception/403'

export default {

  components: {
    RoleManageRouterView,
    Exception403
  },

  data () {
    return {

    }
  },

  computed: {
    ...mapGetters(['root']),
    currentView () {
      if (this.root) {
        return RoleManageRouterView
      } else {
        return Exception403
      }
    }
  }

}
</script>

<style lang="less" scoped>
</style>
